//
//  AppForClaLeaUpLoadPhotoCell.m
//  AttendenceSys
//
//  Created by ld on 16/1/23.
//  Copyright © 2016年 窦芳俊. All rights reserved.
//

#import "AppForClaLeaUpLoadPhotoCell.h"

@implementation AppForClaLeaUpLoadPhotoCell

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];
    
    // Configure the view for the selected state
}

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier])
    {
        [self initCell];
    }
    return self;
}

- (void)initCell
{
    self.selectionStyle = UITableViewCellSelectionStyleNone;
    
    _photoImage = [[UIImageView alloc] initWithFrame:CGRectMake(12,(UpLoadPhotoCellHeight-25)/2,25,25)];
    [_photoImage setBackgroundColor:[UIColor clearColor]];
    [self.contentView addSubview:_photoImage];
    
    _infoLab = [[UILabel alloc] initWithFrame:CGRectMake(52, 10, 80, 25)];
    [_infoLab setBackgroundColor:[UIColor clearColor]];
    _infoLab.font = [UIFont systemFontOfSize:16];
    [_infoLab setTextAlignment:NSTextAlignmentLeft];
    _infoLab.textColor = RGB(102, 102, 102);
    [self.contentView addSubview:_infoLab];
    
    UIImageView* imageView = [[UIImageView alloc] initWithFrame:CGRectMake([UIScreen mainScreen].bounds.size.width-10.5-30, 12.5, 10.5, 20)];
    [imageView setBackgroundColor:[UIColor clearColor]];
    [imageView setImage:[UIImage imageNamed:@"ic_next"]];
     [self.contentView addSubview:imageView];
    
    UIImageView* lineView  = [[UIImageView alloc] initWithFrame:CGRectMake(0,UpLoadPhotoCellHeight-1,[UIScreen mainScreen].bounds.size.width,1)];
    [lineView setBackgroundColor:RGB(240, 240, 240)];
    [self.contentView addSubview:lineView];
    
}

@end
